package com.wang.mapper;

import com.wang.pojo.Device;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeviceDao {


    void updateDevStatusCode(String devGId, String devStatusCode);

    void setSocketDevOffLine(String devStatusCode);

    List<Device> selectJSONSocketDev(String devTxTypeCode, String devDataTypeCode);

    List<Device> selectModbusSocketDev(String devTxTypeCode, String devDataTypeCode);

    Device selectDeviceByDevGId(String devGId);

    Device selectDeviceByDevId(Integer devId);

    void updateDevOnlineData(Integer devId, String devStatusCode, String lastOnlineTime, String totalOfflineTime);

    void updateDevOfflineData(Integer devId, String devStatusCode, String lastOffLineTime, String totalOnlineTime);

    List<Device> selectDevByDevStatus(String devStatusCode);

    List<Device> selectCustom1SocketDev(String devTxTypeCode, String devDataTypeCode);

    List<Device> selectByFlagConf(String flagConf);

    List<Device> selectCustom2SocketDev(String devTxTypeCode, String devDataTypeCode);
}
